@keyframes myfirst
{
0%   {top:250px;}
100% {top:200px;}
}
.Idcard {
    height: 100%;
    position: relative;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
}
.Idcard h2 {
    font-size: 44px;
}
.imgBox{
    position: relative;
    width: 800px;
    height: 563px;
    margin: 0 auto;
    background: url(../../../img/card3.png);
}
.Idcard .cardText{
    position: absolute;
    right: 129px;
    top: 140px;
    font-size: 24px;
    color: #e31a1a;
    margin: 0;
    font-weight: bold;
}
.img1{
    position: absolute;
    left: 565px;
    top: 200px;
    animation: myfirst 1.5s ease-in-out 0s infinite alternate;
}
.img2{
    position: absolute;
    right: 95px;
    top: 270px;
}